package com.example.vue20220402.pojo;

public class Test {
    enum Color {RED, GREEN, BLUE;}

    enum Size {BIG, MIDDLE, SMALL;}

    public static void main(String args[]) {
        System.out.println("=========== Print all Color ===========");
        for (Color c : Color.values()) {
            System.out.println(c + " ordinal: " + c.ordinal());
        }
        System.out.println("=========== Print all Size ===========");
        for (Size s : Size.values()) {
            System.out.println(s + " ordinal: " + s.ordinal());
        }
    }
}